package community.hospital.convert;

import community.hospital.entity.Order;
import community.hospital.entity.request.OrderRequest;
import community.hospital.entity.response.OrderResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author yindingjie
 */
@Mapper
public interface OrderConvert {
    OrderConvert INSTANCE = Mappers.getMapper(OrderConvert.class);

    Order convertToOrder(OrderRequest request);

    OrderResponse convertToResp(Order order);
}
